<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>车辆人员出入管理平台系统</title>
<link rel="stylesheet" href="themes/default/easyui.css" />
<link rel="stylesheet" href="themes/icon.css" />
<link rel="stylesheet" href="css/main.css" />
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.easyui.min.js"></script>
<script type="text/javascript" src="easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
	function myextractor(data) {
		data = $.fn.panel.defaults.extractor(data);
		var tmp = $('<div></div>').html(data);
		data = tmp.find('#content').html();
		tmp.remove();
		return data;
	};
	function open1(title, url) {
		if ($('#tt').tabs('exists', title)) {
			$('#tt').tabs('select', title);
		} else {
			$('#tt').tabs('add', {
				title : title,
				href : url,
				closable : true,
				extractor : myextractor
			});
		}
	};
	function showMsg(msg) {
		$.messager.show({
			title : '操作提示',
			msg : msg,
			showType : 'slide',
			timeout : 3000,
			style : {
				right : '',
				top : document.body.scrollTop
						+ document.documentElement.scrollTop,
				bottom : ''
			}
		});

	}
	Date.prototype.Format = function (fmt) { //author: meizz 
	    var o = {
	        "M+": this.getMonth() + 1, //月份 
	        "d+": this.getDate(), //日 
	        "h+": this.getHours(), //小时 
	        "m+": this.getMinutes(), //分 
	        "s+": this.getSeconds(), //秒 
	        "q+": Math.floor((this.getMonth() + 3) / 3), //季度 
	        "S": this.getMilliseconds() //毫秒 
	    };
	    if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
	    for (var k in o)
	    if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
	    return fmt;
	}
</script>
</head>
<body class="easyui-layout" style="text-align: left">
	<div data-options="region:'north',border:false"
		style="text-align: center">
		<div id="header-inner"
			style="height: 55px; background: url('images/topBg.png');">
			<a href="logout"
				style="float: right; display: block; height: 27px; width: 71px; background: url('images/logoutBtn.png'); margin-top: 15px;"></a>
		</div>
	</div>
	<div data-options="region:'west',border:true,split:true,title:'欢迎你，<shiro:principal/>'"
		style="width: 250px; padding: 5px;">
		<ul class="easyui-tree">
			<shiro:lacksRole name="admin">
				<li><a href="javascript:open1('申请管理','leave');"> 申请管理 </a></li>
			</shiro:lacksRole>

			<li><span>出入查询</span>
				<ul>
					<li iconCls="icon-gears"><a href="#"
						onclick="open1('人员出入记录查询','record/person')"> 人员出入记录查询 </a></li>
					<li><a href="#" onclick="open1('车辆出入记录查询','record/car')">
							车辆出入记录查询 </a></li>
				</ul></li>
			<li><span>系统维护</span>
				<ul>
					<shiro:lacksRole name="admin">
						<li iconCls="icon-gears"><a href="#"
							onclick="open1('人员管理','person')"> 人员管理 </a></li>
						<li><a href="#" onclick="open1('车辆管理','car')"> 车辆管理 </a></li>
					</shiro:lacksRole>
					<shiro:hasRole name="admin">
						<li><a href="#" onclick="open1('管理员管理','user')"> 管理员管理 </a></li>
					</shiro:hasRole>
					<li><a href="#" onclick="open1('个人信息','user/update')"> 个人信息管理 </a></li>
					<li><a href="#" onclick="open1('修改密码','user/changePwd')"> 修改密码 </a></li>
				</ul></li>
		</ul>
	</div>
	<div region="center" border="false">
		<div id="tt" class="easyui-tabs" fit="true" border="false"
			plain="true">
			<div title="首页" href="welcome.html"></div>
		</div>
	</div>

	<div data-options="region:'south',border:true"
		style="height: 30px; padding-top: 3px; text-align: center; background-color: #E0ECFF; background: -webkit-linear-gradient(top, #EFF5FF 0, #E0ECFF 100%);">
		<p style="margin-top: 3px;">山东汇金信息科技有限公司</p>
	</div>
</body>
</html>

